package com.fang.gateway.entity.bo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description security permit all config
 * @Author Bernie_fang
 * @Date 2024/12/28 22:40
 **/
@Component
@ConfigurationProperties(prefix = "security")
public class SecurityProperties {
    private List<String> permitAll;

    public String[] getPermitAll() {
        String[] permitAllStr = permitAll.toArray(new String[permitAll.size()]);
        return permitAllStr;
    }

    public void setPermitAll(List<String> permitAll) {
        this.permitAll = permitAll;
    }
}